package com.raymond.run;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 项目启动类
 *
 * @author :  raymond
 * @version :  1.0
 * @date :  2019/7/15
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.raymond.dao")
@ComponentScan(basePackages = "com.raymond")
@EntityScan(basePackages = "com.raymond.bean")
@Slf4j
public class NettyApplication {

    public static void main(String[] args) {
        log.info("项目启动中");
        SpringApplication.run(NettyApplication.class, args);
    }
}
